<?php

namespace App\Enums;

final class ReportEnums
{
    const PENDING_REVIEW = 0;
    const PROCESSED = 1;
    const SHIPPED = 2;
    const DELIVERED = 3;
    const CANCELLED = 4;

    private static $descriptions = [
        self::PENDING_REVIEW => '待审核',
        self::PROCESSED => '已处理',
        self::SHIPPED => '已发货',
        self::DELIVERED => '已送达',
        self::CANCELLED => '已取消',
    ];

    public static function getDescription($status)
    {
        return isset(self::$descriptions[$status]) ? self::$descriptions[$status] : '未知状态';
    }
}
